﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadPropsDemo.RecipeEditor
{
    class Builder
    {
        static Model.SimpleRecipeService recipeService = new Model.SimpleRecipeService();

        public ViewModel BuildVM()
        {
            var vm = new ViewModel();
            var commands = new Commands(vm, recipeService);
            vm.Commands = commands;

            commands.New.Execute(null);

            return vm;
        }

        public Screen Build()
        {
            return new Screen(new View(), BuildVM());
        }
    }
}
